package com.me.modules.report.service.impl;

import com.me.modules.common.common.Constant;
import com.me.modules.common.page.Page;
import com.me.modules.common.page.PageHelper;
import com.me.modules.report.dao.RepositoryReportDao;
import com.me.modules.report.service.RepositoryReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("repositoryReportService")
public class RepositoryReportServiceImpl implements RepositoryReportService {
	@Autowired
	private RepositoryReportDao repositoryReportDao;

	@Override
	public List<Object> RepositoryLineMonthNumber(Map var2) {
		return repositoryReportDao.RepositoryLineMonthNumber(var2);
	}

	@Override
	public List<Object> RepositoryOrignPie(Map var2) {
		return repositoryReportDao.RepositoryOrignPie(var2);
	}


	@Override
	public Page<Object> RepositoryGridUsability(Map var2, int pageNum) {
		PageHelper.startPage(pageNum, Constant.pageSize);
		repositoryReportDao.RepositoryGridUsability(var2);
		return PageHelper.endPage();
	}
}
